package cn.itcast.user.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 前缀会和我们定义的属性结合得到配置文件属性中的值，即prefix.pattern
 */
@Component
@Data
@ConfigurationProperties(prefix = "pattern")
public class PatternConfig {
    private String dateformat;
    private String name;
}
